﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestLog4net.Customization
{
    class TestClass
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public TestClass()
        {
            Console.WriteLine("logger name is "+log.Logger.Name);
        }
        public static void Dojob()
        {
            log.Debug("in TestClass");
        }
        public void Dojob2()
        {
            log.Debug("in TestClass ,no static");
        }
    }
}
